package d0312;

public class OuterClass1 {
    private String name;
    private int age;

    public void show(){
        class InnerClass{
            public InnerClass(){
                name="jack";
                age=22;
            }
            public void display(){
                System.out.println(name+"\t"+age);
            }
        }
        InnerClass innerClass=new InnerClass();
        innerClass.display();
    }

    public static void main(String[] args) {
        OuterClass1 outClass1=new OuterClass1();
        outClass1.show();
    }
}
